package com.xyy.saas.payment.adpater.unionpay;

import com.xyy.saas.payment.common.exception.PaymentException;
import com.xyy.saas.payment.cores.bo.PayBo;
import com.xyy.saas.payment.payment.core.bo.RefundBO;
import com.xyy.saas.payment.payment.core.dto.PayDto;
import com.xyy.saas.payment.payment.core.dto.RefundDto;

import java.util.SortedMap;

/**
 * 银联使用增加支付渠道的代码
 * @Author zhangwenxiong
 * @Date 2020/12/1 10:16
 * @Version 1.0
 */
public interface UnionPayChannelHandler {
    String getMethod();

    PayBo pay(PayDto payDto) throws PaymentException;
    RefundBO refund(RefundDto refundDto, String channelUser) throws PaymentException ;
    SortedMap joinRefundRequestData(RefundDto refundDto);
    SortedMap joinPayRequestData(PayDto payDto);
}
